package com.kujie.access.domain.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 合同缴费记录表
 *
 * @author jyy
 * @date 2025-05-26
 */
@Data
@TableName(value = "access_contract_payment_record")
public class AccessContractPaymentRecord implements Serializable {

    /**
     * 主键id
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 合同编号，t_contract_management的contract_uuid字段
     */
    @TableField(value = "contract_uuid")
    private String contractUuid;

    /**
     * 合同编号，t_contract_management的contract_uuid字段
     */
    @TableField(value = "contract_name")
    private String contractName;

    /**
     * 缴费金额
     */
    @TableField(value = "payment_amount")
    private String paymentAmount;

    /**
     * 缴纳类型(押金、租金)
     */
    @TableField(value = "payment_type")
    private String paymentType;

    /**
     * 缴纳租赁期限
     */
    @TableField(value = "payment_lease_term")
    private String paymentLeaseTerm;

    /**
     * 缴费时间
     */
    @TableField(value = "payment_deadline")
    private LocalDateTime paymentDeadline;

    /**
     * 租户id
     */
    @TableField(value = "tenant_id")
    private String tenantId;

    /**
     * 创建部门
     */
    @TableField(value = "create_dept")
    private Long createDept;

    /**
     * 创建者
     */
    @TableField(value = "create_by")
    private Long createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新者
     */
    @TableField(value = "update_by")
    private Long updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
